package com.xiyu.service.vo.market.marketTask;

import com.xiyu.service.vo.market.task.baseVO.MarketTaskBase;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;

import jakarta.validation.Valid;
import com.xiyu.service.enums.common.CommonStatusEnum;
import com.xiyu.service.framework.validation.InEnum;

@Schema(description = "新增营销任务")
@Data
public class MarketTaskCreateInput extends MarketTaskBase {

    @Schema(description = "邮件营销正文")
    @Valid
    private content content;

    @Schema(description = "邮件营销接收人")
    @Valid
    private List<receiver> receivers;

    @Schema(description = "邮件营销资源")
    @Valid
    private List<resource> resources;

    @Schema(description = "邮件营销资源")
    @Data
    @Valid
    public static class resource {

        @Schema(description = "文件大小")
        private Integer size;

        @Schema(description = "url路径")
        private String urlName;

        @Schema(description = "资源类型")
        private Integer resourceType;

        @Schema(description = "文件名")
        private String fileName;
    }

    @Schema(description = "邮件营销正文")
    @Data
    @Valid
    public static class content {

        @Schema(description = "正文")
        private String content;
    }

    @Schema(description = "邮件营销接收人")
    @Data
    @Valid
    public static class receiver {

        @Schema(description = "邮件地址")
        private String mailAddress;

        @Schema(description = "客户联系人ID")
        private Long contactId;
    }

}